package com.zhao.aggregation;

/**
 * 聚合关系
 * 聚合关系表示整体与部分的关系。整体与部分可以分开。
 */
public class Computer {
    private Keyboard keyboard;

    private Mouse mouse;

    public Keyboard getKeyboard() {
        return keyboard;
    }

    public void setKeyboard(Keyboard keyboard) {
        this.keyboard = keyboard;
    }
}

class Keyboard {

}

class Mouse {

}


